import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 维护装饰派工单查询
export const getList = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/queryWork`, { params });
// 装饰件主数据查询
export const partInfoMainData = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/partInfoMainData`, { params });
// 保存维修派工单信息
export const excutePartOrderInfo = params => axios.post(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/saveOrUpdate`, params);
// 精品项目弹窗
export const projectInfoMainData = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/projectInfoMainData`, { params });
// 班组号弹窗
export const getWorkGroupData = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/getWorkGroupData`, { params });
// 工单下的项目
export const getProjectList = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/getProjectList`, { params });
// 工单下的装饰件
export const getMaterialList = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/getMaterialList`, { params });
// 查询派工单号
export const getOrderNo = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/getOrderNo`, { params });
// 打印接口
export const getPrintData = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/getPrintData`, { params });
// 批量删除
export const orderDelete = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/orderDelete`, { params });
// 装饰工单审核
export const orderCheck = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/orderCheck`, { params });
// 获取税率接口
export const getRate = params => axios.get(`${SERVER.DMSCLOUD_PART}/partBoutique/decoration/getRate`, { params });
// 已办理会员卡信息
export const getCardHandle = params => axios.get(`${SERVER.MEMBERS_CLUB}/management/handleService/getCardHandle`, { params });
// 查询整车销售单
export const queryCarOrderList = params => axios.get(`${SERVER.CYXDMS_RETAIL}/audiOrderManage/customerOrders/getAudiSalesOrderVinList`, { params });
